package com.marvels.product.param.service;

import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptPlatformFeeDTO;
import com.marvels.product.param.dto.McptProduct;

public interface PlatformFeeService {

	PageInfo<McptPlatformFeeDTO> getPageInfoByParam(Map<String, Object> param) throws MarvelsBusinessException;

	McptPlatformFeeDTO getEntityByPrimaryKey(Long platformFeeId) throws MarvelsBusinessException;

	int insert(McptPlatformFeeDTO dto) throws MarvelsBusinessException;

	int updateByPrimaryKey(McptPlatformFeeDTO dto) throws MarvelsBusinessException;

	int updateStatus(McptPlatformFeeDTO dto) throws MarvelsBusinessException;
	/**
	 * 根据主键删除记录
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	int delete(McptPlatformFeeDTO dto) throws MarvelsBusinessException;
	
	/**根据小类平台费code查询平台费
	 * @author 娄凯琦
	 * @date 2018年5月9日  
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptPlatformFeeDTO getPlatformFeeByPlatformFeeCode(McptProduct dto) throws MarvelsBusinessException;
}
